

<template>
  <div id="app">
    <h1>aaaa</h1>
    <el-row>
      <el-col :span="24"><div class="grid-content bg-purple-dark">aaa</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="12"><div class="grid-content bg-purple">bb1</div></el-col>
      <el-col :span="12"><div class="grid-content bg-purple-light">bb2</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="8"><div class="grid-content bg-purple">c1</div></el-col>
      <el-col :span="8"><div class="grid-content bg-purple-light">c2</div></el-col>
      <el-col :span="8"><div class="grid-content bg-purple">c3</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="6"><div class="grid-content bg-purple">d1</div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple-light">d2</div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple">d3</div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple-light">d4</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="4"><div class="grid-content bg-purple">e1</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple-light">e2</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple">e3</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple-light">e4</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple">e5</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple-light">e6</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="4"><div class="grid-content bg-purple">e1</div></el-col>
      <el-col :span="20">
        <div class="block">
        <span class="demonstration">默认不区分颜色</span>
        <el-rate v-model="value1"></el-rate>
      </div>
        <div class="block">
          <span class="demonstration">区分颜色</span>
          <el-rate
            v-model="value2"
            :colors="colors">
          </el-rate>
        </div>
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="用户管理" name="first">用户管理ttt</el-tab-pane>
          <el-tab-pane label="配置管理" name="second">配置管理tt</el-tab-pane>
          <el-tab-pane label="角色管理" name="third">角色管理tt</el-tab-pane>
          <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿tt</el-tab-pane>
        </el-tabs>
      </el-col>
    </el-row>

    <el-container>
      <el-aside width="200px">
        <el-col :span="12">
          <h5>默认颜色</h5>
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose">
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>导航一</span>
              </template>
              <el-menu-item-group>
                <template slot="title">分组一</template>
                <el-menu-item index="1-1">选项1</el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group title="分组2">
                <el-menu-item index="1-3">选项3</el-menu-item>
              </el-menu-item-group>
              <el-submenu index="1-4">
                <template slot="title">选项4</template>
                <el-menu-item index="1-4-1">选项1</el-menu-item>
              </el-submenu>
            </el-submenu>
            <el-menu-item index="2">
              <i class="el-icon-menu"></i>
              <span slot="title">导航二</span>
            </el-menu-item>
            <el-menu-item index="3" disabled>
              <i class="el-icon-document"></i>
              <span slot="title">导航三</span>
            </el-menu-item>
            <el-menu-item index="4">
              <i class="el-icon-setting"></i>
              <span slot="title">导航四</span>
            </el-menu-item>
          </el-menu>
        </el-col>
      </el-aside>
      <el-container>
        <el-header>
          <el-row>
            <el-button>默认按钮</el-button>
            <el-button type="primary">主要按钮</el-button>
            <el-button type="success">成功按钮</el-button>
            <el-button type="info">信息按钮</el-button>
            <el-button type="warning">警告按钮</el-button>
            <el-button type="danger">危险按钮</el-button>
          </el-row>
        </el-header>
        <el-main>Main</el-main>
        <el-footer>Footer</el-footer>
      </el-container>


    </el-container>


  </div>

</template>
<style>
  .el-row {
    margin-bottom: 20px;
  }
  :last-child {
    margin-bottom: 0;
  }

  .el-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>
<style>
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }

  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }

  body > .el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
<script >
  import { listStudent, getStudent, delStudent, addStudent, updateStudent, exportStudent } from "@/api/demo/student";
  import { getToken } from "@/utils/auth";
  export default {
    name: "Student",
    data() {
      return {
        value1: null,
        value2: null,
        colors: ['#99A9BF', '#F7BA2A', '#FF9900'] , // 等同于 { 2: '#99A9BF', 4: { value: '#F7BA2A', excluded: true }, 5: '#FF9900' }
        activeName: 'second'
      };
    },

    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      },
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  };
</script>
